package jsen.tool.ddd.demo.domain.base;

import java.util.HashSet;
import java.util.Set;

/**
 * @author jsen
 * @date 2021/10/6
 */
public class Ds {
    private static final Set<String> PLATE_SET = new HashSet<>();

    public static void addPlate(String plate) {
        PLATE_SET.add(plate);
    }

    public static void removePlate(String plate) {
        PLATE_SET.remove(plate);
    }

    public static boolean existPlate(String plate) {
        return PLATE_SET.contains(plate);
    }
}
